import request from '@/utils/request'
import qs from 'qs'

export function findProcessFile(params) {
  return request({
    url: 'api/deploy/task/file' + '?' + qs.stringify(params, { indices: false }),
    method: 'get'
  })
}

export function createFile(data) {
  return request({
    url: 'api/deploy/task/file',
    method: 'post',
    data
  })
}

export default { findProcessFile, createFile }
